﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="add-news.ascx.cs" Inherits="templates_admin_usercontrols_add_news" %>
<%@ Register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>

<!---- Name : Phan Uy Linh -->
<!---- Email : uylinhqn@gmail.com -->
<!---- Phone : 01207963663 -->
<script type="text/javascript"> 
    function Upload()
    {
        document.getElementById('<%= fuHinhAnh.ClientID  %>').click();
    }  
    function Change()
    {
        document.getElementById("field-up_fake").value = document.getElementById('<%= fuHinhAnh.ClientID  %>').value;
    }
</script>

<!-- new box --> 

<div class="box corners shadow">
    <div class="box-header">
        
        <h2>
            <img src="../templates/admin/images/address-book-new.png" style="width:40px; height:40px; margin-top:-10px; position:absolute;" />
            <asp:Label ID="lbTitle" runat="server" Text="Viết bài" style="margin-left:40px"></asp:Label>
        </h2>
        <div class="box-header-ctrls">	
        	<a href="javascript:void(null);" title="" class="close"><!-- --></a>
        </div>

    </div>
    
    <div class="box-content" id="settings-1">
        
         <div class="inbox-sf">       
         <table>
            <tr>
                <td>
                    <div class="fileinputs" style="margin-bottom:20px;">
                        <asp:FileUpload ID="fuHinhAnh" onchange="Change();" CssClass="file"  runat="server" title="Upload" name="imgfile" style="opacity: 0; background:#fff"/>
                        <div class="fakefile">
                            <input id="field-up_fake" type="text" value="">                                                                                               
                            <asp:Button ID="btnChonHinh" CssClass="button_button" OnClientClick="Upload();"  runat="server" Text="Chọn hình" />                                                
                        </div>                                                                              
                    </div>
                    <div class="form-upload-msg-1" style="margin-top:40px; margin-left:-300px">Max size 20Mb</div>   
                </td>
                <td>
                    <div class="pages-admod-box-2" style="border:none; height:30px;margin-top:-30px; margin-left:-63px"><asp:TextBox runat="server" ID="dpkNgayVietVn" class="datepicker2" />  </div>                                                        
                </td>
                <td>
                     <asp:Image ID="imgTinTuc" runat="server" Width="120px" Height="120px" />  
                     <asp:Label ID="lbTenHinh" runat="server" Visible="False"></asp:Label>  
                </td>
            </tr>
         </table> 
        </div>
        
        <div class="tabs-wrapper-hori">
            <!-- the tabs/links -->
            <ul class="tabs-ctrls-hori">
                <li><a href="#tabs-1">Tiếng Việt</a></li>
                <li><a href="#tabs-2">Tiếng Anh</a></li>
                

                <li class="help"><a href="#tabs-4">?</a></li>
            </ul>
          <!-- tab 1 -->
            <div id="tabs-1" class="tab-1">
                                              
                    <div class="pages-head-2" style="width:915px">
                        <h2>Tiêu đề</h2>
                        <asp:TextBox ID="txtTieuDe" runat="server" CssClass="input-1"></asp:TextBox>
                        <br /><br />
                        <h2>Tóm tắt</h2>
                        <asp:TextBox ID="txtTomTat" runat="server" CssClass="input-1" TextMode="MultiLine" Height="70px"></asp:TextBox> 
                    </div>
                    <div class="pages-editor-2" style="width:656px">
                       <div style="width:656px; border:1px solid #cecece">
                            <FCKeditorV2:FCKeditor 
                                ID="fckNoiDungVn" runat="server" Height="400px" Width="656px" BasePath="~/editor/fckeditor/">
                            </FCKeditorV2:FCKeditor>
                       </div>	
                    </div>

                    <div class="pages-admod-box-2" style="height:380px">                                            
                                                
                        <label for="tags">Chuyên mục</label>
                        <asp:DropDownList ID="ddlChuyenMuc" runat="server" CssClass="select-1" style="width:248px">
                            <asp:ListItem Value="0">----Chọn chuyên mục----</asp:ListItem>
                        </asp:DropDownList>
                        
                        <label for="cats">Tác giả, Nguồn tin</label>
                        <asp:TextBox ID="txtTacGia" runat="server" CssClass="input-1"></asp:TextBox>  
                        
                        <label for="select-save">Trạng thái</label>
                        <asp:DropDownList ID="ddlTrangThai" runat="server" CssClass="select-1">
                            <asp:ListItem Value="2">-- Chọn trạng thái --</asp:ListItem>
                            <asp:ListItem Value="1">Đăng bài</asp:ListItem>
                            <asp:ListItem Value="0">Chờ duyệt</asp:ListItem>
                        </asp:DropDownList>                                                                                                  
                    </div>                                                                                                              
            </div>
          <!-- tab 2 -->
            <div id="tabs-2" class="tab-1">
                                              
                    <div class="pages-head-2" style="width:915px">
                        <h2>Title</h2>
                        <asp:TextBox ID="txtTitle" runat="server" CssClass="input-1"></asp:TextBox>
                        <br /><br />
                        <h2>Info</h2>
                        <asp:TextBox ID="txtSummary" runat="server" CssClass="input-1" TextMode="MultiLine" Height="70px"></asp:TextBox>    
                    </div>
                    <div class="pages-editor-2" style="width:656px">
                       <div style="width:656px; border:1px solid #cecece">
                            <FCKeditorV2:FCKeditor 
                                ID="fckContent" runat="server" Height="400px" Width="656px" BasePath="~/editor/fckeditor/">
                            </FCKeditorV2:FCKeditor>
                       </div>	
                    </div>

                    <div class="pages-admod-box-2" style="height:380px">                                               
                        
                        <label for="tags">Category</label>
                        <asp:DropDownList ID="ddlCategory" runat="server" CssClass="select-1" style="width:248px">
                            <asp:ListItem Value="0">----Select category----</asp:ListItem>
                        </asp:DropDownList>
                               
                        <label for="cats">Authors, Sources</label>
                        <asp:TextBox ID="txtAuthors" runat="server" CssClass="input-1"></asp:TextBox>    
                       
                        <label for="select-save">Status</label>
                        <asp:DropDownList ID="ddlStatus" runat="server" CssClass="select-1">
                            <asp:ListItem Value="2">-- Select status --</asp:ListItem>
                            <asp:ListItem Value="1">Posted</asp:ListItem>
                            <asp:ListItem Value="0">Wating for approval</asp:ListItem>
                        </asp:DropDownList>                                                                                                
                    </div>                                                                                                              
            </div>
         
          <!-- tab help -->  
            <div id="tabs-4" class="tab-1 help">
                <h2>Hướng dẫn phần đăng tin tức</h2>
                <p>
                Đọc kỹ hướng dẫn trước khi sử dụng
                <p>
                
                </p>
            </div>
           <!-- end tabs -->                        
        </div><!-- END "#tabs-wrapper-1" --> 
         
        <div class="submit-box">
            <asp:Button ID="btnPreview" runat="server" Text="Quay lại" 
                onclick="btnPreview_Click" />
            <input type="reset" name="reset" value="Nhập lại"/>
            <asp:Button ID="btnSave" runat="server" Text="Lưu" onclick="btnSave_Click" />
        </div>
                           
    </div><!-- END ".box-content" --> 
</div><!-- END ".box" -->
